/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

.ContextMenu {
  min-width: 160px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.08), 0 8px 24px 0 rgba(0, 0, 0, 0.16);
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
  position: fixed;
  z-index: 100000;
}

.ContextMenu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  padding: 0 16px 0 24px;
  color: var(--graphite-dark);
  background: transparent;
  border: 0;
  text-align: left;
  line-height: inherit;
}

.ContextMenuTrigger {
  opacity: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 8px;
  border-radius: 4px;
  transition: opacity;
  transition-timing-function: var(--ease-out-quart);
  transition-duration: var(--animation-timing-slow);
}

.ContextMenuTrigger:focus-visible {
  opacity: 1;
  outline: 1px solid var(--account-accent-color, var(--border-color));
}

.ContextMenu-item:hover,
.ContextMenu-item.selected {
  background-color: rgba(0, 0, 0, 0.16);
}

.ContextMenu-item:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.16);
}
